<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/axios.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<table>
				<tr>
					<td>编号</td>
					<td>标题</td>
					<td>内容</td>
				</tr>
				<tr v-for="v in art">
					<td>{{v.ID}}</td>
					<td>{{v.title}}</td>
					<td>{{v.content}}</td>
				</tr>
			</table>
		</div>
	</body>
</html>
<script type="text/javascript">
	var app=new Vue({
		el:"#app",
		data:{
			art:"",
		},methods:{
			list(){
				axios.get("http://127.0.0.1:8080/list").then(res=>{
					this.art=res.data.data
				})
			}
		},created:function(){
			this.list()
		}
	})
</script>